﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using GalaSoft.MvvmLight;
using GalaSoft.MvvmLight.Command;
using SmartMusicBox.ServiceModel;

namespace SmartMusicBox.Model
{
    public class TileModel : ViewModelBase
    {
        public string ChannelNo { get; set; }
        public SongModel SongData { get; set; }

        private string _ChannelName;
        public string ChannelName
        {
            get { return _ChannelName; }
            set
            {
                _ChannelName = value;
                this.RaisePropertyChanged("ChannelName");
            }
        }

        private string _SongInfo;
        public string SongInfo
        {
            get { return _SongInfo; }
            set
            {
                _SongInfo = value;
                this.RaisePropertyChanged("SongInfo");
            }
        }

        private ImageSource _Picture;
        public ImageSource Picture
        {
            get { return _Picture; }
            set
            {
                _Picture = value;
                this.RaisePropertyChanged("Picture");
            }
        }

        private RelayCommand<TileModel> _OnTapCommand;
        public RelayCommand<TileModel> OnTapCommand
        {
            get { return _OnTapCommand; }
            set
            {
                _OnTapCommand = value;
                this.RaisePropertyChanged("OnTapCommand");
            }
        }

    }
}
